@extends('plugin.layout.baseDoing')
@section('add_css')

@endsection
@section('content')
    <div class="layui-card">

        <div class="layui-card-body">
            <div class="layui-form layui-form-kongqi" id="layuiadmin-form" id="layuiadmin-form">
                {{ csrf_field() }}
                {{ method_field('PUT') }}
                <input type="hidden" name="group_type" value="{{ $show->group_type }}">

                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                    <ul class="layui-tab-title">
                        <li class="layui-this">基本信息</li>
                        <li>图片设置</li>
                        <li>SEO设置</li>
                        <li>其他信息</li>
                        <li>单页信息</li>
                        <li>相关绑定</li>
                    </ul>

                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                            <div class="layui-form-item">
                                <label class="layui-form-label">上级</label>
                                <div class="layui-input-block">
                                    <select name="parent_id" class="layui-select" id="">
                                        <option value="0">根级</option>
                                        @if(count($cate)>0)
                                            @foreach($cate as $k=>$v)
                                                <option value="{{ $v['id'] }}" >{{ str_repeat("-", $v['depth'] * 4) }}{{ $v['name'] }}</option>
                                            @endforeach
                                        @endif
                                        <option value=""></option>
                                    </select>
                                </div>
                            </div>
                            @include('plugin.tpl.form.text',[
                                  'data'=>[
                                  'name'=>'name',
                                  'title'=>'名称',
                                  'tips'=>'',
                                  'value'=>$show->name,
                                  'rq'=>'rq'
                              ]])
                            @include('plugin.tpl.form.text',[
                                'data'=>[
                                'name'=>'ename',
                                'title'=>'标识符',
                                'tips'=>'',
                                'rq'=>'rq',
                                'value'=>$show->ename
                            ]])
                            @include('plugin.tpl.form.radio',[
                               'data'=>[
                               'name'=>'module',
                               'title'=>'模块',
                               'tips'=>'',
                               'rq'=>'rq',
                               'on_id'=>$show->module,

                               'list'=>[
                                   'type'=>'',
                                   'data'=>$module
                               ]
                           ]])

                            @include('plugin.tpl.form.radio',[
                             'data'=>[
                             'name'=>'is_checked',
                             'title'=>'是否禁用',
                             'mark'=>'',
                             'tips'=>'',
                             'rq'=>'rq',
                             'on_id'=>$show->is_checked,
                             'value'=>'',
                             'list'=>[
                                 'type'=>'',
                                 'data'=>[
                                           [
                                           'id'=>'1',
                                           'name'=>'否'
                                           ],
                                             [
                                           'id'=>'0',
                                           'name'=>'是'
                                           ]
                                     ]
                             ]
                         ]])
                            @include('plugin.tpl.form.textarea',[
                                'data'=>[
                                'name'=>'intro',
                                'title'=>'介绍',
                                'tips'=>'',
                                'rq'=>'',
                                'value'=>$show->intro
                            ]])
                            @include('plugin.tpl.form.text',[
                               'data'=>[
                               'name'=>'sort',
                               'title'=>'排序',
                               'tips'=>'',
                               'rq'=>'',
                               'value'=>$show->sort
                           ]])
                        </div>
                        <div class="layui-tab-item ">
                            @include('plugin.tpl.form.thumbPlace',[
                                  'data'=>[
                                      'name'=>'thumb',
                                      'value'=>$show->thumb??'',
                                      'show'=>$show->thumb??0,
                                      'title'=>'PC缩略图',
                                      'tips'=>'',
                                      'rq'=>'',
                                      'place'=>1,
                                      'obj'=>'thumbUpload'
                                  ]])
                            @include('plugin.tpl.form.thumbPlace',[
                                'data'=>[
                                    'name'=>'mthumb',
                                    'value'=>$show->mthumb??'',
                                    'show'=>$show->mthumb??0,
                                    'title'=>'移动缩略图',
                                    'tips'=>'',
                                    'rq'=>'',
                                    'place'=>1,
                                    'obj'=>'mthumbUpload'
                                ]])
                            @include('plugin.tpl.form.thumbPlace',[
                               'data'=>[
                                   'name'=>'banner',
                                   'value'=>$show->banner??'',
                                   'show'=>$show->banner??0,
                                   'title'=>'PC横幅图',
                                   'tips'=>'',
                                   'rq'=>'',
                                   'place'=>1,
                                   'obj'=>'mbannerUpload'
                               ]])
                            @include('plugin.tpl.form.thumbPlace',[
                               'data'=>[
                                   'name'=>'mbanner',
                                   'value'=>$show->mbanner??'',
                                   'show'=>$show->mbanner??0,
                                   'title'=>'移动横幅图',
                                   'tips'=>'',
                                   'rq'=>'',
                                   'place'=>1,
                                   'obj'=>'mbannerUpload'
                               ]])
                        </div>
                        <div class="layui-tab-item ">
                            @include('plugin.tpl.form.seo',['data'=>['seo_title'=>$show->seo_title,'seo_key'=>$show->seo_key,'seo_desc'=>$show->seo_desc]])
                        </div>
                        <div class="layui-tab-item ">
                            @include('plugin.tpl.form.text',[
                                 'data'=>[
                                 'name'=>'pagesize',
                                 'title'=>'列表数量',
                                 'tips'=>'',
                                 'value'=>$show->pagesize ?: 20,
                                 'rq'=>'rq'
                             ]])


                        </div>


                    </div>
                </div>
                @include('plugin.tpl.form.submit')
            </div>
        </div>





    </div>


@endsection
@section('foot_js')
    @include('plugin.layout.editor.editor')
    <script>
        var $ = '';

        layui.use(['index'], function () {
            $ = layui.$;
            editor("#content");
            editor("#mcontent");
            editor("#xcontent");

        })
    </script>


@endsection